package com.my.study.designPatterns.commandPattern;

public class Light {

    private String name;

    public Light(String name) {
        this.name = name;
    }

    public void lightOn(){
        System.out.println(name + "Light is on");
    }

    public void lightOff(){
        System.out.println(name + "Light is off");
    }
}
